package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.MyFabulous;
import cn.wolfcode.trip.base.query.MyFabulousQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MyFabulousMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MyFabulous record);

    MyFabulous selectByPrimaryKey(Long id);

    List<MyFabulous> selectAll();

    int updateByPrimaryKey(MyFabulous record);

    List<MyFabulous> query(QueryObject qo);

    int queryFabulousCount(QueryObject qo);

    void changeState(@Param("fabulouId") Long fabulouId);

    MyFabulous checkHasFabulous(MyFabulousQueryObject qo);

    void deleteFabulous(MyFabulous mf);
}